package org.finesys.system.api.feign;

import org.finesys.common.constants.ServerConstants;
import org.finesys.system.api.service.TenantService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "tenantServiceApi", value = ServerConstants.SYSTEM_SERVER)
public interface TenantServiceApi extends TenantService {

    /**
     * 校验租户信息是否合法
     */
    @Override
    @GetMapping(value = "/tenant/validTenant/{id}")
    void validTenant(@PathVariable(value = "id") Long id);

}
